# find grape -> parallel graph computing engine
# GRAPE_FOUND bool
# GRAPE_LIB -> /usr/local/lib/libgrape.a
# GRAPE_INCLUDE -> /usr/local/include/GRAPE/GRAPE.h


find_library(GRAPE_LIB
        NAME grape 
        PATHS /usr/local/lib

        )
find_path(GRAPE_INCLUDE
        GRAPE.h
        /usr/local/include/GRAPE
        )
if(GRAPE_LIB AND GRAPE_INCLUDE)
        set(GRAPE_FOUND TRUE)
        MESSAGE("** GRAPE FOUND AT **")
        MESSAGE("GRAPE_LIB -> ${GRAPE_LIB}")
        message("GRAPE_INCLUDE -> ${GRAPE_INCLUDE}")
ELSE(GRAPE_LIB AND GRAPE_INCLUDE)
        SET(GRAPE_FOUND FALSE)
        MESSAGE(FATAL_ERROR "** GRAPE NOT FOUND **") 
endif(GRAPE_LIB AND GRAPE_INCLUDE)


